function showErrMsg(msg) {
    var a = self;
    if (parent != a) {
        a = parent;
    }
    a.layer.msg(msg, {time:2000})
}

function showSuccessMsg(msg) {
    var a = self;
    if (parent != a) {
        a = parent;
    }
    a.layer.msg(msg, {time:1000})
}

function showSuccessMsgCall(msg,callback) {
    layer.msg(msg, {time:2000},callback)
}

var url = location.href;
var share_url = "";
var base_url = "";
var title = "";
var litpic = "";
var desa = "";

var canPay = false

var  loading
$.ajaxSetup({
    beforeSend:function (){
        loading =  layer.load()
    },
    complete:function () {
        layer.close(loading)
    }
})